package com.ruoyi.purchase.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.purchase.mapper.PurchaseStorePayMapper;
import com.ruoyi.purchase.domain.PurchaseStorePay;
import com.ruoyi.purchase.service.IPurchaseStorePayService;

/**
 * 入库付款信息Service业务层处理
 * 
 * @author wonderland
 * @date 2023-07-18
 */
@Service
public class PurchaseStorePayServiceImpl implements IPurchaseStorePayService 
{
    @Autowired
    private PurchaseStorePayMapper purchaseStorePayMapper;

    /**
     * 查询入库付款信息
     * 
     * @param id 入库付款信息主键
     * @return 入库付款信息
     */
    @Override
    public PurchaseStorePay selectPurchaseStorePayById(Long id)
    {
        return purchaseStorePayMapper.selectPurchaseStorePayById(id);
    }

    /**
     * 查询入库付款信息列表
     * 
     * @param purchaseStorePay 入库付款信息
     * @return 入库付款信息
     */
    @Override
    public List<PurchaseStorePay> selectPurchaseStorePayList(PurchaseStorePay purchaseStorePay)
    {
        return purchaseStorePayMapper.selectPurchaseStorePayList(purchaseStorePay);
    }

    /**
     * 新增入库付款信息
     * 
     * @param purchaseStorePay 入库付款信息
     * @return 结果
     */
    @Override
    public int insertPurchaseStorePay(PurchaseStorePay purchaseStorePay)
    {
        return purchaseStorePayMapper.insertPurchaseStorePay(purchaseStorePay);
    }

    /**
     * 修改入库付款信息
     * 
     * @param purchaseStorePay 入库付款信息
     * @return 结果
     */
    @Override
    public int updatePurchaseStorePay(PurchaseStorePay purchaseStorePay)
    {
        return purchaseStorePayMapper.updatePurchaseStorePay(purchaseStorePay);
    }

    /**
     * 批量删除入库付款信息
     * 
     * @param ids 需要删除的入库付款信息主键
     * @return 结果
     */
    @Override
    public int deletePurchaseStorePayByIds(Long[] ids)
    {
        return purchaseStorePayMapper.deletePurchaseStorePayByIds(ids);
    }

    /**
     * 删除入库付款信息信息
     * 
     * @param id 入库付款信息主键
     * @return 结果
     */
    @Override
    public int deletePurchaseStorePayById(Long id)
    {
        return purchaseStorePayMapper.deletePurchaseStorePayById(id);
    }
}
